<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/struts-bean" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/tld/struts-html" prefix="html"%>
<%@ taglib uri="/WEB-INF/tld/struts-logic" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tld/jstl/c" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/tld/jstl/fn" prefix="fn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="ebb365,ebb365,ebb365">
<meta http-equiv="description" content="ebb365">
<title>新闻分类管理</title>
<link rel="stylesheet" type="text/css" href="/admin/css/css.css">
</head>
<body>
<table width="100%">
<tr><td width="45%">大类列表</td><td width="10%">&nbsp;</td><td width="45%">小类列表</td></tr>
<tr><td width="45%" valign="top">
<table width="100%">
<tr><td height="4" bgcolor="#999999"></td></tr>
<logic:present name="newsbigclasslist">
<logic:iterate id="item" name="newsbigclasslist">
<tr><td>
<html:form action="/admin/newsclass/big.do">
<html:hidden property="bcId" value="${item.bcId}"/>
<html:text property="bcClassname" value="${item.bcClassname}"></html:text>
<html:submit>修改</html:submit><html:link href="/admin/newsclass/manage.do?action=deleteBig&b_id=${item.bcId}" target="main">删除</html:link>
<html:link href="/admin/newsclass/manage.do?action=manage&b_id=${item.bcId}" target="main">在这个下面加</html:link>
<logic:equal name="b_id" scope="request" value="${item.bcId}">〓</logic:equal>
</html:form>
</td></tr>
</logic:iterate>
</logic:present>
<tr><td>
<html:form action="/admin/newsclass/big.do">
<html:text property="bcClassname"></html:text>
<html:submit>添加</html:submit></html:form>
</td></tr>
</table>
</td>
<td width="10%">&nbsp;</td>
<td width="45%" valign="top">
<table width="100%">
<tr><td height="4" bgcolor="#999999"></td></tr>
<logic:present name="newssmallclasslist">
<logic:iterate id="single" name="newssmallclasslist">
<tr><td>
<html:form action="/admin/newsclass/small.do">
<html:hidden property="scId" value="${single.scId}"/>
<html:hidden property="newsbigclassid" value="${single.newsBclass.bcId}"/>
<html:text property="scClassname" value="${single.scClassname}"></html:text>
<html:submit>修改</html:submit>
<html:link href="/admin/newsclass/manage.do?action=deleteSmall&s_id=${single.scId}&b_id=${single.newsBclass.bcId}" target="main">删除</html:link>
</html:form>
</td></tr>
</logic:iterate>
</logic:present>
<tr><td>
<html:form action="/admin/newsclass/small.do">
<html:hidden property="newsbigclassid" value="${b_id}"/>
<html:text property="scClassname"></html:text>
<html:submit>添加</html:submit></html:form>
</td></tr>
</table>
</td></tr>
</table>
</body>
</html>